<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body><%!String name;
	Cookie mycookie = null;
	Cookie[] allcookie = null;%>
	<%
		allcookie = request.getCookies();
		if (allcookie != null) {
			for (Cookie x : allcookie) {
				name = x.getName();
				if (name.equals("dontShowOnStartUp")) {
					response.sendRedirect("d3a6-main.jsp");
				}
			}
		}
	%>
	<h2>Hello this is a default page.</h2>
	<form action="d3a6-main.jsp" method="post">
		<p>
			Don't display this page<input type="checkbox"
				name="dontShowOnStartUp" value="on" /> <br /> <input type="submit"
				name="submit" value="OK" />
		</p>
	</form>
</body>
</html>